// pages/order-list/order-list.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    curr: {
      sell: "curr",
      buy: ""
    },
    sellData:[],
    buyData:[]
  },

  showSell: function() {
    this.setData({
      curr:{
        sell: "curr",
        buy: ""
      }
    });
  },

  showBuy: function () {
    this.setData({
      curr: {
        sell: "",
        buy: "curr"
      }
    });
  },
  
  goAtherPage: function (e) {
    var url = e.currentTarget.dataset.link;
    wx.navigateTo({ url: url })
  },
  goAtherPageRedirect: function (e) {
    var url = e.currentTarget.dataset.link;
    wx.redirectTo({ url: url })
  }
})